package com.per.mybootall.test;

import java.util.regex.Pattern;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: yyy
 * Date: 2022/1/14
 * Time: 11:40
 * Description:Pattern匹配正则 返回两个true
 */
public class test08 {
    public static void main(String[] args) {
        Pattern pa= Pattern.compile("com.*");
        System.out.println(pa.matcher("com").matches());
        System.out.println(pa.matcher("com.a.zxc").matches());
    }
}
